        function checkUserTele()
        {
            var tele=document.getElementById("userPhone");
            var result=document.getElementById("result");
            var flag=tele.checkValidity();
            if(tele.value=='')
            {
                flag=false;
            }
            if(flag==true)
            {
                result.innerHTML="输入格式正确"
            }
            else
            {
                result.innerHTML="请输入正确的邮箱"
            }
        }
        function checkUsername()
        {
            var name=document.getElementById("userName");
            var result1=document.getElementById("result1");
            var flag=name.checkValidity();
            if(name.value=='')
            {
                flag=false;
            }
            if(flag)
            {
                result1.innerHTML="输入格式正确"
            }
            else
            {
                result1.innerHTML="请输入昵称，至少3个字符，至多20个字符"
            }
        }
        function checkUserpassword()
        {
            var password=document.getElementById("userpassword");
            var result2=document.getElementById("result2");
            var flag=password.checkValidity();
            if(password.value=='')
            {
                flag=false;
            }
            if(flag)
            {
                result2.innerHTML="输入格式正确"
            }
            else
            {
                result2.innerHTML="请输入至少8位的密码"
            }
        }
        function checkUserpassword1()
        {
            var password=document.getElementById("userpassword1");<!--  -->
            var result3=document.getElementById("result3");
            var flag=password.checkValidity();
            if(password.value=='')
            {
                flag=false;
            }
            if(flag)
            {
                result3.innerHTML="输入格式正确"
            }
            else
            {
                result3.innerHTML="请输入至少8位的密码"
            }
        }